package com.guaoran.jvm.classloader;

/**
 * @author : guaoran
 * @Description
 * 反射的三种方式
 * @date :2019/2/28 14:41
 */
public class ReflectionDemo {
    public static void main(String[] args) throws ClassNotFoundException {
        Object object = new Object();
        Class<Object> clazzObj = Object.class;
        Class<?> clazzObject = object.getClass();
        Class<?> forName = Class.forName("java.lang.Object");
        System.out.println(clazzObj+"\t"+clazzObject+"\t"+forName);
    }
}
